package com.comac.print.component.app.common.exception;

import lombok.Data;

/**
 * @Description 打印公共异常
 * @Author zhoubin
 * @Date 2025/04/21 14:28
 */
@Data
public class PrintCommonException extends RuntimeException{

    private String message;
    private String errCode;

    public PrintCommonException() {
        super();
    }

    public PrintCommonException(String message) {
        super(message, null);
        this.message = message;
    }

    public PrintCommonException(String message, String errCode) {
        super(message, null);
        this.message = message;
        this.errCode = errCode;
    }

    public PrintCommonException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public PrintCommonException(String message, String errCode, Throwable cause) {
        super(message, cause);
        this.message = message;
        this.errCode = errCode;
    }
}
